package cn.datax.service.data.market.service;

import cn.datax.common.base.BaseService;
import cn.datax.service.data.market.cata.dto.CataDto;
import cn.datax.service.data.market.cata.dto.UserResourceInfoDto;
import cn.datax.service.data.market.cata.entity.CataEntity;
import cn.datax.service.data.market.cata.entity.ResourceInfoEntity;
import cn.datax.service.data.market.cata.entity.UserResourceInfoEntity;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yuwei
 * @since 2019-09-04
 */
public interface UserResourceService extends BaseService<UserResourceInfoEntity> {

    UserResourceInfoEntity saveData(UserResourceInfoDto info);

    void updateData(UserResourceInfoDto cata);

    List<UserResourceInfoEntity> getUserResourceByUserId(String userId, String resourcrType);

    IPage<UserResourceInfoEntity> pageGetUserResourceByUserId(Page tPage, String userId, String resourceType,String resourceName);


    void deleteDataById(String id);

    void applySubmit(String id);

}
